package com.zplus.managers.petservices.mappers;
import com.zplus.managers.petservices.entities.Pet;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface PetMapper
{
    List<Pet> queryAllPetByState(@Param("state") int state);
    List<Pet> queryAllPet();
    List<Pet> queryPetsBySpeci(@Param("species") String speci);
    Pet queryPetById(@Param("petId") int id);

    int insertPet(Pet pet);

    int updatePetInfo(Pet petAft);

    int dropPet(@Param("id")int id);

}
